package com.hellogood.yaohuo.shared.services;

import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.hellogood.yaohuo.shared.entity.Goods;

@RemoteServiceRelativePath("GoodsService")
public interface GoodsService extends RemoteService {
	public class Util {
		private static GoodsServiceAsync instance;

		public static GoodsServiceAsync getInstance() {
			if (instance == null) {
				instance = GWT.create(GoodsService.class);
			}
			return instance;
		}
	}
	
	public List<Goods> searchGoodsList(String key);
}
